<html>

<head>

<?php

include "../includes/constants.php";
include "../includes/functions.php";
include "../includes/profile.php";

?>

<title>EQ Emu - <?php echo $Profile["name"];?>'s Memorized Spells</title>

<script src="../includes/functions.js"></script>

<link rel="stylesheet" type="text/css" href="memspells.css">

</head>

<body>

<table border="1">
<?php

foreach ($Profile["mem_spells"] as $Key => $Value) {
	echo "\t<tr>
		<td class=\"gem\">";
	if ($Value != 4294967295) {
		echo GetSpellIcon($Value);
	} else {
		echo "&nbsp;";
	};
	echo "</td>
		<td class=\"slot\">" . $Key . "</td>
		<td class=\"spell\">";
	if ($Value != 4294967295) {
		echo GetSpellName($Value);
	} else {
		echo "&nbsp;";
	};
	echo "</td>
	</tr>\n";
};

?>
</table>

</body>

</html>